names = ["1",2,'3']
for name in names:
    if (name != names[-1]):
        print(name,end="-")
    else:
        print(name,end="\n")

# range(5),生成0-4的5个数
print(tuple(range(5)))

print(list(range(5)))

sum = 0
for x in range(101):
    sum+=x
print(sum)

# 0-100所有偶数的和
n = 100
sum = 0
while n > 0:
    sum +=n
    n = n-2
print('sum is : %d'%(sum))


# practice
L = ['Bart', 'Lisa', 'Adam']
for name in L:
    print('hello %s' %(name))


#practice
for x in range(100):
    x = 10
    if(x == 10):
        continue
    
while True:
    pass
print("end")

